/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package banksystem;

/**
 *
 * @author conra_000
 */
public enum CDPackage {
	ONEMINLOW("1 Minute LP", 0.035, 1, 250, 50),
	ONEMINHIGH("1 Minute HP", 0.05, 1, 500, 150),
	FIVEMINLOW("5 Minute LP", 0.05, 5, 1000, 75),
	FIVEMINHIGH("5 Minute HP", 0.075, 5, 1500, 210);
	
	private String mPackageName;
	private double mInterest;
	private int mPeriod;
	private double mMinBalance;
	private double mPenalty;

	CDPackage(String packageName, double interest, int period, double minBalance, double penalty) {
		mPackageName = packageName;
		mInterest = interest;
		mPeriod = period;
		mMinBalance = minBalance;
		mPenalty = penalty;
	}
		
	@Override
	public String toString() {
		return new String(this.mPackageName);
	}
	
	public double getInterestRate()
	{
		return this.mInterest;
	}

	public int getPeriod() {
		return this.mPeriod;
	}
	
	public double getMinimumBalance()
	{
		return this.mMinBalance;
	}
	
	public double getPenalty() {
		return this.mPenalty;
	}
}
